package com.mspbots.core.wise.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mspbots.core.AbstractBaseServiceImpl;
import com.mspbots.core.wise.mapper.TenantSkillsMapper;
import com.mspbots.core.wise.model.TenantSkills;
import com.mspbots.core.wise.service.TenantSkillsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TenScheduleService
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2019/6/4
 */
@Service
public class TenantSkillsServiceImpl extends AbstractBaseServiceImpl<TenantSkillsMapper, TenantSkills> implements TenantSkillsService {

    @Override
    public List<TenantSkills> selectIdNameByTenant(TenantSkills t) {
        QueryWrapper<TenantSkills> queryWrapper = new QueryWrapper<>(t);
        queryWrapper.select("cw_id", "name");
        return super.list(queryWrapper);
    }


}
